package com.bw.repair.api

import com.bw.common.api.BaseApiServer
import com.bw.common.entity.BaseRes
import com.bw.repair.entity.AddRepairEntity
import com.bw.repair.entity.RepairEntityItem
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST

interface RepairApiServer:BaseApiServer {
    //维修列表
    @GET("/api/repair-orders")
    suspend fun loadRepairData():BaseRes<List<RepairEntityItem>>
    //添加维修订单
    @POST("/api/repair-orders")
    suspend fun loadAddRepairData(@Body addRepair: AddRepairEntity):BaseRes<AddRepairEntity>
}